package com.ufox.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ufox.entity.Goods;
import com.ufox.entity.GoodsCond;
import com.ufox.mapper.GoodsMapper;
import com.ufox.service.IGoodsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 商品信息表 服务实现类
 * </p>
 *
 * @author 优狐科技-www.hbufox.com
 * @since 2022-05-31
 */
@Service
public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements IGoodsService {

    @Autowired
    private GoodsMapper goodsMapper;

    @Override
    public Page<Goods> selectAllByCond(Page<Goods> pageInfo, GoodsCond goodsCond) {
        return goodsMapper.selectAllByCond(pageInfo,goodsCond);
    }

    @Override
    public Goods findById(Integer id) {
        return goodsMapper.findById(id);
    }
}
